/*
 * @Descripttion:
 * @version:
 * @Author: 麦冬果果
 * @Date: 2021-07-15 09:10:46
 * @LastEditors: 麦冬果果
 * @LastEditTime: 2021-09-07 11:04:58
 */
package hook

import (
	"github.com/gogf/gf/net/ghttp"
	"github.com/gogf/gf/os/glog"
)

func init() {
	HookList.Append(testParams)
}

var testParams = HookEntity{
	FuncName: "testParams",
	Style:    "AFTER_OUTPUT",
	Param:    nil,
	Run:      TestParams,
}

func TestParams(r *ghttp.Request) {
	//获取参数
	task := GetHookByName("testParams")
	if task == nil {
		return
	}
	glog.Debug(task.Param)

}
